﻿using System;

namespace NLite.Mini.Fluent
{
    /// <summary>
    /// 命名表达式接口
    /// </summary>
    public interface INamedExpression : IContractExpression
    {
        /// <summary>
        /// 设置契约类型
        /// </summary>
        /// <param name="contract"></param>
        /// <returns></returns>
        IContractExpression Bind(Type contract);

        /// <summary>
        /// 设置契约类型
        /// </summary>
        /// <typeparam name="TContract"></typeparam>
        /// <returns></returns>
        IContractExpression Bind<TContract>();
    }
}
